package com.block.sms.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import com.block.common.annotate.ExceptionLog;
import com.block.common.vo.ResponseVo;
import com.block.db.entity.ApplicationInfo;
import com.block.db.entity.ChannelBaseInfo;
import com.block.db.entity.SmsRecordInfo;
import com.block.sms.dto.SmsParamDTO;
import com.block.sms.dto.SmsResultDTO;
import com.block.sms.enums.UseTypeEnum;

/**
 * <p>
 *  服务类
 * </p>
 *
 * 
 * @since 2021-02-16
 */
public interface ISmsRecordService extends IService<SmsRecordInfo> {

    ResponseVo sendSmsCode(String mobile, String operationType, String ip, ApplicationInfo applicationInfo, ChannelBaseInfo channelBaseInfo);

    ResponseVo sendSms(SmsParamDTO smsParamDTO, ApplicationInfo applicationInfo, ChannelBaseInfo channelBaseInfo);

    void updateSmsRecord(SmsRecordInfo smsRecord, SmsResultDTO smsResult);

    void querySmsRecordResult();
}
